
<template tag="以下文档内容为hycli自动生成">
  <div>
   
    <!-- 标记提测情况 -->
    <el-dialog v-model="conf.aaaeg_visible" 
        draggable
      title="标记提测情况" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaaeg">
    <el-form  ref="fm_aaaeg" :model="form_aaaeg" :rules="rules_aaaeg">
    <el-row>
    <el-col :span="24">
    <!-- {"index":74,"raw":"check_in_test","name":"check_in_test","cname":"CheckInTest","type":{"raw":"number(1)","name":"number","len":1,"dlen":0},"defValue":"1","allowNull":true,"constraints":["l","le","v","fq","q","sl(check_in_test)","pt","tp(radio,pt)","color","ps(full)"],"desc":{"raw":"提测状态","name":"提测状态"}} -->
    <el-form-item prop="check_in_test" label="提测状态" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaaeg.check_in_test"   >
        <el-radio-button v-for="item in check_in_testList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaaeg" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaaeg" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 标记接口提交 -->
    <el-dialog v-model="conf.aaaeh_visible" 
        draggable
      title="标记接口提交" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaaeh">
    <el-form  ref="fm_aaaeh" :model="form_aaaeh" :rules="rules_aaaeh">
    <el-row>
    <el-col :span="12">
    <!-- {"index":76,"raw":"interface_status","name":"interface_status","cname":"InterfaceStatus","type":{"raw":"date","name":"date","len":0,"dlen":0},"defValue":"","allowNull":true,"constraints":["le","v","fq","ifs","sl(check_in_test)","tp(radio,ifs)","color"],"desc":{"raw":"接口提交","name":"接口提交"}} -->
    <el-form-item prop="interface_status" label="接口提交" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaaeh.interface_status"   >
        <el-radio-button v-for="item in interface_statusList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaaeh" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaaeh" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
   
    <!-- 标记联调情况 -->
    <el-dialog v-model="conf.aaaei_visible" 
        draggable
      title="标记联调情况" :close-on-click-modal="false"  width="60%"
      top="10vh" 
      :before-close="hide_aaaei">
    <el-form  ref="fm_aaaei" :model="form_aaaei" :rules="rules_aaaei">
    <el-row>
    <el-col :span="12">
    <!-- {"index":75,"raw":"combined_test_status","name":"combined_test_status","cname":"CombinedTestStatus","type":{"raw":"number(1)","name":"number","len":1,"dlen":0},"defValue":"1","allowNull":true,"constraints":["le","v","fq","sl(check_in_test)","cts","tp(radio,cts)","color"],"desc":{"raw":"联调状态","name":"联调状态"}} -->
    <el-form-item prop="combined_test_status" label="联调状态" label-width="100px" label-position="right">
      <el-radio-group v-model="form_aaaei.combined_test_status"   >
        <el-radio-button v-for="item in combined_test_statusList" :key="item.value" :label="item.value" >
            {{item.name}}
        </el-radio-button>
      </el-radio-group>
    </el-form-item>
    </el-col>
    </el-row>
    </el-form>
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="hide_aaaei" icon="close">取消</el-button>
        <el-button type="primary" @click="save_aaaei" icon="select">提交</el-button>
      </span>
    </template>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data(){
    return{
      conf:{
        aaaeg_visible:false,//标记提测情况
        aaaeh_visible:false,//标记接口提交
        aaaei_visible:false,//标记联调情况
      },
      form_aaaeg:{},//标记提测情况
      form_aaaeh:{},//标记接口提交
      form_aaaei:{},//标记联调情况
      //标记提测情况
      rules_aaaeg:{ 
        check_in_test:[{required:false, message:"请输入提测状态", trigger: 'blur'}],
      },
      //标记接口提交
      rules_aaaeh:{ 
        interface_status:[{required:false, message:"请输入接口提交", trigger: 'blur'}],
      },
      //标记联调情况
      rules_aaaei:{ 
        combined_test_status:[{required:false, message:"请输入联调状态", trigger: 'blur'}],
      },
    }
  },
  methods:{
     //--------------------标记提测情况---------------------------------
      //显示 标记提测情况 弹出框
      show_aaaeg(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaaeg,currentForm)
        this.form_aaaeg.check_in_test = fm.check_in_test
        this.form_aaaeg.tsk_id = fm.tsk_id
        //特殊参数处理
        // this.form_aaaeg.tsk_id = (this.bcheck||[]).join(",")
        this.loadEnums_aaaeg()
        this.conf.aaaeg_visible = true;
      },

      //隐藏 标记提测情况 弹出框
      hide_aaaeg(){
        this.conf.aaaeg_visible = false;
        this.$refs.fm_aaaeg.resetFields();
      },

      //保存 标记提测情况 弹出框数据
      save_aaaeg(){
        let that = this
        this.$refs.fm_aaaeg.validate((v=>{
          if(!v) return
          let post_form_aaaeg = this.form_aaaeg
          this.$theia.http.post("/ws/dev/task/postedtest",post_form_aaaeg).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaaeg()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------标记接口提交---------------------------------
      //显示 标记接口提交 弹出框
      show_aaaeh(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaaeh,currentForm)
        this.form_aaaeh.interface_status = fm.interface_status
        this.form_aaaeh.tsk_id = fm.tsk_id
        //特殊参数处理
        // this.form_aaaeh.tsk_id = (this.bcheck||[]).join(",")
        this.loadEnums_aaaeh()
        this.conf.aaaeh_visible = true;
      },

      //隐藏 标记接口提交 弹出框
      hide_aaaeh(){
        this.conf.aaaeh_visible = false;
        this.$refs.fm_aaaeh.resetFields();
      },

      //保存 标记接口提交 弹出框数据
      save_aaaeh(){
        let that = this
        this.$refs.fm_aaaeh.validate((v=>{
          if(!v) return
          let post_form_aaaeh = this.form_aaaeh
          this.$theia.http.post("/ws/dev/task/interfacesubmit",post_form_aaaeh).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaaeh()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
     //--------------------标记联调情况---------------------------------
      //显示 标记联调情况 弹出框
      show_aaaei(fm){
        //处理输入参数
        let currentForm = {}
        Object.assign(this.form_aaaei,currentForm)
        this.form_aaaei.combined_test_status = fm.combined_test_status
        this.form_aaaei.tsk_id = fm.tsk_id
        //特殊参数处理
        // this.form_aaaei.tsk_id = (this.bcheck||[]).join(",")
        this.loadEnums_aaaei()
        this.conf.aaaei_visible = true;
      },

      //隐藏 标记联调情况 弹出框
      hide_aaaei(){
        this.conf.aaaei_visible = false;
        this.$refs.fm_aaaei.resetFields();
      },

      //保存 标记联调情况 弹出框数据
      save_aaaei(){
        let that = this
        this.$refs.fm_aaaei.validate((v=>{
          if(!v) return
          let post_form_aaaei = this.form_aaaei
          this.$theia.http.post("/ws/dev/task/cts",post_form_aaaei).then(res=>{
            that.$notify.success({title: '成功',message: '提交成功',duration:5000})
            that.$emit("onsaved")
            that.hide_aaaei()
          }).catch(res=>{
            let code = ((res||{}).response||{}).status||0
            let msg= `提交失败(${code})`
            that.$notify.error({title: '失败',message:msg,duration:5000})
          })
      }))
    },
    //标记提测情况
    loadEnums_aaaeg(){
        //提测状态
        this.check_in_testList = this.$theia.enum.get("check_in_test","","" ,false,"")
    },

    //标记接口提交
    loadEnums_aaaeh(){
        //接口提交
        this.interface_statusList = this.$theia.enum.get("check_in_test","","" ,false,"")
    },

    //标记联调情况
    loadEnums_aaaei(){
        //联调状态
        this.combined_test_statusList = this.$theia.enum.get("check_in_test","","" ,false,"")
    },

  },
}
</script>
<style scoped>
.form_item_info{
  margin-left: 4px;
  color:#999;
}
.form_item_info:hover{
  cursor: pointer;
  font-weight: 500;
  color:#333;
}
</style>